<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Library Evolutionary Algorithms for Clustering (LEAC): include_inout/inparam_fixedk.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="leac_logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Library Evolutionary Algorithms for Clustering (LEAC)
   &#160;<span id="projectnumber">Version 1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6811ab4d66cfcd0145286a7c6e46fe51.html">include_inout</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">inparam_fixedk.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="inparam__fixedk_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#ifndef IN_PARAM_FIXEDK_HPP</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#define IN_PARAM_FIXEDK_HPP</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="inparam__clustering_8hpp.html">inparam_clustering.hpp</a>&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">namespace  </span><a class="code" href="namespaceinout.html">inout</a> {</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  </div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="inparam__fixedk_8hpp.html#a65f63807a10996a10999f0953d6f7e28">   29</a></span>&#160;<span class="preprocessor">#define INPARAMCLUSTERING_DEFAULT_CLUSTERK     3</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  </div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T_CLUSTERIDX&gt; <span class="comment">//-1, 0, 1, .., K</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classinout_1_1_in_param_fk.html">   35</a></span>&#160;<span class="keyword">class </span><a class="code" href="classinout_1_1_in_param_fk.html">InParamFk</a> {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classinout_1_1_in_param_fk.html#a9daa2e61c98d2a1d669e616976b7b610">   37</a></span>&#160;  <a class="code" href="classinout_1_1_in_param_fk.html#a9daa2e61c98d2a1d669e616976b7b610">InParamFk</a>() </div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    : <a class="code" href="classinout_1_1_in_param_fk.html#ac3c22129d14f937f0f4b50beadc95a3a">_idxK_numClusterK</a>(<a class="code" href="inparam__fixedk_8hpp.html#a65f63807a10996a10999f0953d6f7e28">INPARAMCLUSTERING_DEFAULT_CLUSTERK</a>)</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  {}</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classinout_1_1_in_param_fk.html#ac42125bf071846c184935b578bfd9aaf">   40</a></span>&#160;  <a class="code" href="classinout_1_1_in_param_fk.html#ac42125bf071846c184935b578bfd9aaf">~InParamFk</a>() {}</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classinout_1_1_in_param_fk.html#af9e7880d2eaf06af72534b51a4fa13b0">   42</a></span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classinout_1_1_in_param_fk.html#af9e7880d2eaf06af72534b51a4fa13b0">setNumClusterK</a>(T_CLUSTERIDX aiidxK_numClusterK) </div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  {</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    this-&gt;<a class="code" href="classinout_1_1_in_param_fk.html#ac3c22129d14f937f0f4b50beadc95a3a">_idxK_numClusterK</a> = aiidxK_numClusterK;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  }</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classinout_1_1_in_param_fk.html#a346af7c5186678bb25a7fddd0b53ad6c">   47</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> T_CLUSTERIDX <a class="code" href="classinout_1_1_in_param_fk.html#a346af7c5186678bb25a7fddd0b53ad6c">getNumClusterK</a>()<span class="keyword"> const </span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">  </span>{</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordflow">return</span> this-&gt;<a class="code" href="classinout_1_1_in_param_fk.html#ac3c22129d14f937f0f4b50beadc95a3a">_idxK_numClusterK</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  }</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classinout_1_1_in_param_fk.html#a6e802ceda1aaf74e47470fff3eaa8b64">   52</a></span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classinout_1_1_in_param_fk.html#a6e802ceda1aaf74e47470fff3eaa8b64">print</a>(std::ostream&amp; aipf_outFile=std::cout, <span class="keyword">const</span> <span class="keywordtype">char</span> aic_separator=<span class="charliteral">&#39;,&#39;</span>)<span class="keyword"> const</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keyword">  </span>{</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    aipf_outFile &lt;&lt; aic_separator &lt;&lt; <span class="stringliteral">&quot;_k&quot;</span>   </div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                 &lt;&lt; aic_separator &lt;&lt; this-&gt;<a class="code" href="classinout_1_1_in_param_fk.html#ac3c22129d14f937f0f4b50beadc95a3a">_idxK_numClusterK</a>; </div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  </div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  }</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classinout_1_1_in_param_fk.html#ac3c22129d14f937f0f4b50beadc95a3a">   59</a></span>&#160;  T_CLUSTERIDX <a class="code" href="classinout_1_1_in_param_fk.html#ac3c22129d14f937f0f4b50beadc95a3a">_idxK_numClusterK</a>; <span class="comment">//-1, 0, 1, .., K</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;}; <span class="comment">/*InParamFk*/</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;} <span class="comment">/*END namespace inout</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment">   */</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*IN_PARAM_FIXEDK_HPP*/</span><span class="preprocessor"></span></div><div class="ttc" id="namespaceinout_html"><div class="ttname"><a href="namespaceinout.html">inout</a></div><div class="ttdoc">Module for input and output parameters.</div></div>
<div class="ttc" id="classinout_1_1_in_param_fk_html_a346af7c5186678bb25a7fddd0b53ad6c"><div class="ttname"><a href="classinout_1_1_in_param_fk.html#a346af7c5186678bb25a7fddd0b53ad6c">inout::InParamFk::getNumClusterK</a></div><div class="ttdeci">const T_CLUSTERIDX getNumClusterK() const</div><div class="ttdef"><b>Definition:</b> <a href="inparam__fixedk_8hpp_source.html#l00047">inparam_fixedk.hpp:47</a></div></div>
<div class="ttc" id="inparam__clustering_8hpp_html"><div class="ttname"><a href="inparam__clustering_8hpp.html">inparam_clustering.hpp</a></div><div class="ttdoc">Definition of input parameters.</div></div>
<div class="ttc" id="classinout_1_1_in_param_fk_html_ac3c22129d14f937f0f4b50beadc95a3a"><div class="ttname"><a href="classinout_1_1_in_param_fk.html#ac3c22129d14f937f0f4b50beadc95a3a">inout::InParamFk::_idxK_numClusterK</a></div><div class="ttdeci">T_CLUSTERIDX _idxK_numClusterK</div><div class="ttdef"><b>Definition:</b> <a href="inparam__fixedk_8hpp_source.html#l00059">inparam_fixedk.hpp:59</a></div></div>
<div class="ttc" id="classinout_1_1_in_param_fk_html_a6e802ceda1aaf74e47470fff3eaa8b64"><div class="ttname"><a href="classinout_1_1_in_param_fk.html#a6e802ceda1aaf74e47470fff3eaa8b64">inout::InParamFk::print</a></div><div class="ttdeci">virtual void print(std::ostream &amp;aipf_outFile=std::cout, const char aic_separator=',') const</div><div class="ttdef"><b>Definition:</b> <a href="inparam__fixedk_8hpp_source.html#l00052">inparam_fixedk.hpp:52</a></div></div>
<div class="ttc" id="classinout_1_1_in_param_fk_html_a9daa2e61c98d2a1d669e616976b7b610"><div class="ttname"><a href="classinout_1_1_in_param_fk.html#a9daa2e61c98d2a1d669e616976b7b610">inout::InParamFk::InParamFk</a></div><div class="ttdeci">InParamFk()</div><div class="ttdef"><b>Definition:</b> <a href="inparam__fixedk_8hpp_source.html#l00037">inparam_fixedk.hpp:37</a></div></div>
<div class="ttc" id="inparam__fixedk_8hpp_html_a65f63807a10996a10999f0953d6f7e28"><div class="ttname"><a href="inparam__fixedk_8hpp.html#a65f63807a10996a10999f0953d6f7e28">INPARAMCLUSTERING_DEFAULT_CLUSTERK</a></div><div class="ttdeci">#define INPARAMCLUSTERING_DEFAULT_CLUSTERK</div><div class="ttdef"><b>Definition:</b> <a href="inparam__fixedk_8hpp_source.html#l00029">inparam_fixedk.hpp:29</a></div></div>
<div class="ttc" id="classinout_1_1_in_param_fk_html"><div class="ttname"><a href="classinout_1_1_in_param_fk.html">inout::InParamFk</a></div><div class="ttdoc">Input parameter for algorithms with Fixed K.</div><div class="ttdef"><b>Definition:</b> <a href="inparam__fixedk_8hpp_source.html#l00035">inparam_fixedk.hpp:35</a></div></div>
<div class="ttc" id="classinout_1_1_in_param_fk_html_ac42125bf071846c184935b578bfd9aaf"><div class="ttname"><a href="classinout_1_1_in_param_fk.html#ac42125bf071846c184935b578bfd9aaf">inout::InParamFk::~InParamFk</a></div><div class="ttdeci">~InParamFk()</div><div class="ttdef"><b>Definition:</b> <a href="inparam__fixedk_8hpp_source.html#l00040">inparam_fixedk.hpp:40</a></div></div>
<div class="ttc" id="classinout_1_1_in_param_fk_html_af9e7880d2eaf06af72534b51a4fa13b0"><div class="ttname"><a href="classinout_1_1_in_param_fk.html#af9e7880d2eaf06af72534b51a4fa13b0">inout::InParamFk::setNumClusterK</a></div><div class="ttdeci">void setNumClusterK(T_CLUSTERIDX aiidxK_numClusterK)</div><div class="ttdef"><b>Definition:</b> <a href="inparam__fixedk_8hpp_source.html#l00042">inparam_fixedk.hpp:42</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 19 2019 08:58:32 for Library Evolutionary Algorithms for Clustering (LEAC) by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
